<h3><?php echo __d('global','Main'); ?></h3>
<?php 
	$domain = $this->Session->read('Config.Domain'); // Domains/view
	$class = (is_array($domain) && is_numeric($domain['Domain']['id']) && $domain['Domain']['id'] > 0) ? 'enable' : 'disable';
?>
<ul>
<?php if($class =="enable"){?>
	<li><?php echo $this->Html->link(__d('global','Menu'), array('controller' => 'menuses', 'action' => 'index'),array('class'=>$class)); ?> </li>	
	<li><?php echo $this->Html->link(__d('global','Posts'), array('controller' => 'posts', 'action' => 'index'),array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Comments'), array('controller' => 'comments', 'action' => 'index'),array('class'=>$class)); ?> </li>	
	<li><?php echo $this->Html->link(__d('global','Movies'), array('controller' => 'movies', 'action' => 'admin'),array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Gallery'), array('controller' => 'galleries', 'action' => 'admin'),array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Gallery categories'), array('controller' => 'gallery_categories', 'action' => 'index'),array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Newsletter'), array('controller' => 'newsletters', 'action' => 'admin'),array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Prowadzący'), array('controller' => 'prowadzacy', 'action' => 'admin'),array('class'=>$class)); ?> </li>	
	<li><?php echo $this->Html->link(__d('global','Configuration'), array('controller' => 'domains', 'action' => 'view',$this->Session->read('Config.Domain.Domain.id'),'d'=>'settings'),array('class'=>$class));?></li>		
<?php }else{?>	
	<li><?php echo $this->Html->link(__d('global','Menu'),'#',array('class'=>$class)); ?> </li>	
	<li><?php echo $this->Html->link(__d('global','Posts'), '#',array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Comments'), '#',array('class'=>$class)); ?> </li>	
	<li><?php echo $this->Html->link(__d('global','Movies'), '#',array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Gallery'), '#',array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Gallery categories'), '#',array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Newsletter'), '#',array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Prowadzący'),'#',array('class'=>$class)); ?> </li>
	<li><?php echo $this->Html->link(__d('global','Configuration'), '#',array('class'=>$class));?></li>
<?php }?>	
</ul>

